cd /home/ez-crm-java
git pull
mvn clean package -Dmaven.test.skip=true
set +e
PID=$(ps -ef | grep ezpro-1.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}')
if [ ! -z $PID ]; then
   kill -9 $PID
fi
cd target
nohup java -jar ezpro-1.0-SNAPSHOT.jar &> run.log &